#include <stdio.h>
#include "cmd_core.h"
#include "module_interface.h"

int EXEC_FUN(demo,get)(char *cmd_line, char *ret_buf, size_t ret_max_len)
{
	printf("test,get\n");
	return 0;
}

int EXEC_FUN(demo,set)(char *cmd_line, char *ret_buf, size_t ret_max_len)
{
	printf("test,set\n");
	return 0;
}

int init_demo()
{
	printf("init_demo\n");
	return 0;
}

static cmd_process_t demo_cmds[] = {
			DEF_CMD(demo,get),			//new
			DEF_CMD(demo,set),
			{"",NULL,NULL}
		};

cmdexe_module_t CUR_MODULE = {
	"demo",
	demo_cmds,
	init_demo,
};
